package com.zksk.admin.service.member;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zksk.admin.domain.member.dto.DistributionDto;
import com.zksk.admin.domain.member.dto.OperatorDto;
import com.zksk.admin.domain.member.dto.MemberDto;
import com.zksk.admin.domain.member.vo.MemberVo;
import com.zksk.common.core.domain.R;
import com.zksk.mbg.admin.domain.Member;
import com.zksk.mbg.admin.domain.MemberManage;
import com.zksk.mbg.admin.domain.MemberOperator;

import java.util.List;

/**
 * @description:
 * @author: xiebo
 * @create: 2022-12-15 10:55
 **/
public interface MemberService  extends IService<Member> {
    R insert(MemberVo memberVo);

    R updateMember(MemberVo memberVo);

    void updateOperator(Long memberId,String operatorName,String operatorPhone);

    boolean checkOperatorPhone(String operatorPhone);

    R deleteMember(List<Long> ids);

    R<MemberVo> selectById(Long id);

    R<Page<MemberVo>> selectList(MemberDto memberDto);

    R distribution(DistributionDto distributionDto);

    boolean checkMemberName(String memberName);

    boolean checkCreditCode(String creditCode);

    R<Page<MemberOperator>> getManageList(OperatorDto operatorDto);

    R deleteOperator(List<Long> ids);
}
